{include_core file="admin/lib/login_header.html" title="后台登录"}
<div class="login-con">
  <div class="login-form">
    <form action="{AnUrl('admin/login_auth')}" method="post">
      <input type = "hidden" name="callback_url" value="{$callback_url}"/>
      <p class="login-form-box">
        <label for="">用户名：</label><input type="text" name="username" id="username" >
      </p>
      <p class="login-form-box">
        <label for="">密&nbsp;&nbsp;&nbsp;码：</label><input name="password" id="password" type="password">
      </p>
      <!-- <p class="clearfix">
        <label for="remember" class="login-form-chk left"><input type="checkbox" id="remember"><span>记住密码</span></label>
      </p> -->
      <p class="clearfix">
        <label for="remember" class="login-form-chk left"><span></span></label>
        <button type="submit" class="btn btn-success btn-xxl right js_loginBtn">&nbsp;&nbsp;登&nbsp;录&nbsp;&nbsp;</button>
      </p>
    </form>
  </div>
</div>
<script>
var info = "{$info}";
$(function(){

  $('.js_loginBtn').click(function(e){
    e.preventDefault();
    if ($('.js_loginBtn').attr('is_post') == 1) {
      showMsg('正在提交信息，请稍候 ...');
      return false;
    }
    var userName = $.trim($('#username').val());
    if (!userName) {
      showMsg('用户名不能为空');
      return;
    }
    var password = $.trim($('#password').val());
    if (!password) {
      showMsg('密码不能为空');
      return;
    }

    var frm = $(this).closest('form');
    frm.submit();
  });
});
</script>
{include_core file="admin/lib/login_footer.html"}